package com.cloud.spock.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//被测试的service
@Component
public class MyService {
	@Autowired
	private DbEntityDao dbEntityDao;
	private String value;

	public String getValue() {
		return value;
	}

	public int stringToInteger(String valueStr) {
		return Integer.valueOf(valueStr);
	}

	public String getUtilValue(String id) {
		return id + MyServiceUtil.getValue(id);
	}

	public void setValue(String value) {
		this.value = value;
	}

	public long selectByRequestNo(String requestNo) {
		DbEntity dbEntity = dbEntityDao.selectByRequestNo(requestNo);
		return dbEntity.getId();
	}

	public int add(int a,int b){
        return a+b;
    }
}
